<?php
return [
    'core' => [
        'zh' => '[\u4e00-\u9fa5]',
        'mb' => '[^\x00-\xff]',
        'email' => '\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}',
        'url' => '((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+',
        'mobile' => '0?(13|14|15|17|18|19)[0-9]{9}',
        'phone' => '[0-9-()（）]{7,18}',
        'int' => '[1-9]\d*|0',
        'float' => '[1-9]\d*.\d*|0.\d*[1-9]\d*',
        'qq' => '[1-9]([0-9]{5,11})',
        'postal' => '\d{6}',
        'ipv4' => '(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)',
        'card' => '\d{17}[\d|x]|\d{15}',
        'date' => '\d{4}(\-|\/|.)\d{1,2}\1\d{1,2}',
        'name' => '[A-Za-z0-9_\-\u4e00-\u9fa5]+',
    ]
];